import request from "@/api/request"
//删除素材文件
function delMaterial(id,data){
    return request ({
        url:`/lejuAdmin/material/delMaterial/${id}`,
        method:'DELETE',
        data
    })
}
//查询素材列表
function findMaterialByPage(start,limit,data){
    return request ({
        url:`/lejuAdmin/material/findMaterialByPage/${start}/${limit}`,
        method:'GET',
        data
    })
}
//通用删除oss文件
function removeOssFile(data){
    return request ({
        url:"/lejuAdmin/material/removeOssFile",
        method:"POST",
        data
    })
}
//通用素材上传接口
function uploadFileOss(data){
    return request ({
        url:"/lejuAdmin/material/uploadFileOss",
        method:"POST",
        data
    })
}
//素材上传
function uploadFileOssSave(data){
    return request ({
        url:"/lejuAdmin/material/uploadFileOssSave",
        method:"POST",
        data
    })
}
export default{
    delMaterial,findMaterialByPage,removeOssFile,uploadFileOss,uploadFileOssSave
}